import axios from "../utils/index";
// 轮播图
export const getlunbo = (params) => {
  return axios({
    method: "get",
    url: "/api/getlunbo",
    params,
  });
};

// 获取图文资讯
export const getnewslist = () => {
  return axios({
    method: "get",
    url: "/api/getnewslist",
  });
};

//   获取图文资讯详情

export const getnewInfo = (id) => {
  return axios({
    method: "get",
    url: `/api/getnew/${id}`,
  });
};

//   图片列表数据
export const getimages = (id) => {
  return axios({
    method: "get",
    url: `/api/getimages/${id}`,
  });
};
//   图片分类数据
export const getimgcategory = () => {
  return axios({
    method: "get",
    url: `/api/getimgcategory`,
  });
};
//   图片分享详情中的缩略图数组
export const getthumimages = (id) => {
  return axios({
    method: "get",
    url: `/api/getthumimages/${id}`,
  });
};
//   图片详情
export const getimageInfo = (id) => {
  return axios({
    method: "get",
    url: `/api/getimageInfo/${id}`,
  });
};
